<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Output text</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.ps-show2.html">« ps_show2</a></li>
      <li style="float: right;"><a href="function.ps-string-geometry.html">ps_string_geometry »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.ps.html">PS 函数</a></li>
    <li>Output text</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.ps-show" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ps_show</h1>
  <p class="verinfo">(PECL ps &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">ps_show</span> &mdash; <span class="dc-title">Output text</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ps-show-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ps_show</strong></span>(<span class="methodparam"><span class="type">resource</span> <code class="parameter">$psdoc</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$text</code></span>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   Output a text at the current text position. The text position can be set
   by storing the x and y coordinates into the values <code class="literal">textx</code>
   and <code class="literal">texty</code> with the function
   <span class="function"><a href="function.ps-set-value.html" class="function">ps_set_value()</a></span>. The function will issue an
   error if a font was not set before with <span class="function"><a href="function.ps-setfont.html" class="function">ps_setfont()</a></span>.
  </p>
  <p class="para">
   <span class="function"><strong>ps_show()</strong></span> evaluates the following parameters and values
   as set by <span class="function"><a href="function.ps-set-parameter.html" class="function">ps_set_parameter()</a></span> and
   <span class="function"><a href="function.ps-set-value.html" class="function">ps_set_value()</a></span>.
  </p>
  <dl>
   
    <dt>
charspacing (value)</dt>

    <dd>

     <p class="para">
      Distance between two consecutive glyphs. If this value is unequal to
      zero then all ligatures will be resolved. Values less than zero are
      allowed.
     </p>
    </dd>

   
   
    <dt>
kerning (parameter)</dt>

    <dd>

     <p class="para">
      Setting this parameter to &quot;false&quot; will turn off kerning. Kerning is
      turned on by default.
     </p>
    </dd>

   
   
    <dt>
ligatures (parameter)</dt>

    <dd>

     <p class="para">
      Setting this parameter to &quot;false&quot; will turn off the use of ligatures. 
      Ligatures are turned on by default.
     </p>
    </dd>

   
   
    <dt>
underline (parameter)</dt>

    <dd>

     <p class="para">
      Setting this parameter to &quot;true&quot; will turn on underlining. Underlining
      is turned off by default.
     </p>
    </dd>

   
   
    <dt>
overline (parameter)</dt>

    <dd>

     <p class="para">
      Setting this parameter to &quot;true&quot; will turn on overlining. Overlining is
      turned off by default.
     </p>
    </dd>

   
   
    <dt>
strikeout (parameter)</dt>

    <dd>
 
     <p class="para">
      Setting this parameter to &quot;true&quot; will turn on striking out. Striking out
      is turned off by default.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.ps-show-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">psdoc</code></dt>

     <dd>

      <p class="para">
       Resource identifier of the postscript file
       as returned by <span class="function"><a href="function.ps-new.html" class="function">ps_new()</a></span>.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">text</code></dt>

     <dd>

      <p class="para">
       The text to be output.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ps-show-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>true</code></strong>， 或者在失败时返回 <strong><code>false</code></strong>。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ps-show-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.ps-continue-text.html" class="function" rel="rdfs-seeAlso">ps_continue_text()</a> - Continue text in next line</span></li>
    <li class="member"><span class="function"><a href="function.ps-show-xy.html" class="function" rel="rdfs-seeAlso">ps_show_xy()</a> - Output text at given position</span></li>
    <li class="member"><span class="function"><a href="function.ps-setfont.html" class="function" rel="rdfs-seeAlso">ps_setfont()</a> - Sets font to use for following output</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>